<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Admin extends Controller {

	protected $data;

	function Admin()
	{
		parent::Controller();

		//Require login as administrator

		//
		// This stuff goes into all of the controllers that use the
		// xhtml_admin_panels layout
		//
		$this->layout->set_layout('xhtml_admin_panels');

		//use full urls that go into the site_url()..
		$this->data['navigation_area_links'] = array(
			'admin/users' => 'Users',
			'admin/projects' => 'Projects',
			'admin/api' => 'API',
			'admin/config' => 'Configuration'
		);

		$this->load->library('form_validation');

		$this->data['navigation_current_link'] = $this->uri->segment(1) . '/' . $this->uri->segment(2);
	}

	// --------------------------------------------------------------------

	function index()
	{
		$this->layout->view('admin/index', $this->data);
	}
}

/* End of file admin.php */
/* Location: ./system/application/controllers/admin.php */